<template>  
  <div class="profile-page">  
    <router-link to="/" class="home-link">首页</router-link> |  
    <h1>个人介绍</h1>  
    <div class="profile-info">  
      <div class="profile-avatar-container">  
        <img :src="avatarUrl" alt="Avatar" class="profile-avatar" />  
      </div>  
      <h2>{{ userName }}</h2>  
      <p>兴趣爱好: {{ interests }}</p>  
      <p>邮箱: {{ email }}</p>  
    </div>  

  </div>  
  <div class="test">
    <h3 style="font-size: 40px;">vue自动化测试</h3>
      <img src="/img/test1.png" class="screenshot" style="width: 900px;height: 650px;"/>
      <img src="/img/test2.png" class="screenshot" style="width: 900px;height: 650px;"/>
    </div>
</template>  
  
<script>  
import { ref, onMounted } from 'vue';   
  
export default {  
  name: 'Profile',  
  setup() {  
    const userName = ref('Li XingLian');  
    const bio = ref('这是一个关于我自己的简短介绍');  
    const interests = ref('阅读、旅行、看电影');  
    const email = ref('3109724056@qq.com');  
    const avatarUrl = ref('https://img1.baidu.com/it/u=102443593,1548317231&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500');
    return {  
      userName,  
      bio,  
      interests,  
      email,  
      avatarUrl,
    };  
  }  
};  
</script>  
  
<style scoped>  
.profile-page {  
  max-width: 800px;  
  margin: 0 auto;  
  padding: 20px;  
  font-family: Arial, sans-serif;  
}  
  
.profile-page h1 {  
  text-align: center;  
  font-size: 24px;  
  margin-bottom: 20px;  
}  
  
.profile-info {  
  display: flex;  
  flex-direction: column;  
  align-items: center;  
  background-color: #f9f9f9;  
  border: 1px solid #ddd;  
  padding: 20px;  
  margin-bottom: 20px;  
  border-radius: 5px;  
}  
  
.profile-avatar-container {  
  margin-bottom: 15px;  
  text-align: center;  
}  

.profile-avatar {  
  width: 100px;  
  height: 100px;  
  border-radius: 50%;  
  object-fit: cover;  
}  
  
.profile-bio {  
  font-size: 16px;  
  line-height: 1.5;  
}  
  
.profile-page a,  
.profile-page .router-link {  
  text-decoration: none;  
  color: #98afc7;  
  font-size: 20px;  
}  
  
.profile-page a:hover,  
.profile-page .router-link:hover {  
  text-decoration: underline;  
}  
  
.screenshots {  
  display: flex;  
  flex-direction: column;  
  align-items: center;  
  gap: 10px;  
}  
  
.screenshots img {  
  max-width: 100%;  
  height: auto;  
  border: 1px solid #ddd;  
  border-radius: 5px;  
}  
  
.screenshots p {  
  text-align: center;  
  font-style: italic;  
}  

</style>